using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using Blazing.BusinessObjects.Cms;
using System.Diagnostics;

namespace Blazing.Web.Controls
{
    [NonVisualControl, Themeable(true)]
    public class CmsManager : UserControl
    {
        /// <summary>
        /// Sets the PageId of all Cms controls
        /// </summary>
        public int? PageId
        {
            get { return (int?)ViewState["PageId"]; }
            set { ViewState["PageId"] = value; }
        }

        /// <summary>
        /// Sets the LocationId for all Cms Controls
        /// </summary>
        public int? LocationId
        {
            get { return (int?)ViewState["LocationId"]; }
            set { ViewState["LocationId"] = value; }
        }

        /// <summary>
        /// Sets the BuildingId for all Cms Controls
        /// </summary>
        public int? BuildingId
        {
            get { return (int?)ViewState["BuildingId"]; }
            set { ViewState["BuildingId"] = value; }
        }

        /// <summary>
        /// Sets the SiteId for all Cms Controls
        /// </summary>
        public int? SiteId
        {
            get { return (int?)ViewState["SiteId"]; }
            set { ViewState["SiteId"] = value; }
        }

        /// <summary>
        /// Sets the PageType for all Cms controls
        /// </summary>
        public int? PageTypeId
        {
            get { return (int?)ViewState["PageTypeId"]; }
            set { ViewState["PageTypeId"] = value; }
        }
        
        /// <summary>
        /// Defines the url that is related to the page's content
        /// </summary>
        /// <remarks>
        /// Different content can be defined for different url trees. eg '/rates/' can have different content
        /// to '/rates/specials/'.
        /// </remarks>
        public string Url
        {
            get { return (string)ViewState["Url"]; }
            set { ViewState["Url"] = value; }
        }

        public CmsManager()
        {

        }
    }
}
